package com.nervenets.web.enumeration;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.nervenets.i18n.Translator;
import io.swagger.annotations.ApiModelProperty;

/**
 * @author joe
 * Created at 14-6-26 下午4:11
 */
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum Role {
    admin,//超级管理员
    team,//团队管理员
    ;

    @ApiModelProperty("值")
    public String getValue() {
        return this.name();
    }

    @ApiModelProperty("显示文本")
    public String getText() {
        return Translator.translate(this);
    }
}
